<include file="Public:header"/>
<link rel="stylesheet" href="__STATIC__/task/jquery-ui/jquery-ui.css" type="text/css"/>
<form class="form-horizontal" action="" method="post">
    <fieldset>
        <div class="control-group">
            <label class="control-label">品牌</label>

            <div class="controls">
                <input type="text" class="input-xlarge" name="brand">

                <p class="help-block">需要维护的品牌</p>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">维护计划</label>

            <div class="controls">
                <select name="plan">
                    <foreach name="plans" item="plan">
                        <option value="{$plan.itemid}">{$plan.title}</option>
                    </foreach>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">维护类型</label>

            <div class="controls">
                <select name="type">
                    <option value="1">展示底图</option>
                    <option value="2">小图底图</option>
                    <option value="3">添加品牌</option>
                    <option value="4">商场海报</option>
                    <option value="5">商场楼层</option>
                    <option value="6">商品特卖</option>
                    <option value="7">优惠领取</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="textarea">当前数量</label>

            <div class="controls">
                <input type="text" class="input-xlarge" name="now_count" value="0" maxlength="3"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="textarea">最后数量</label>

            <div class="controls">
                <input type="text" class="input-xlarge" name="end_count" maxlength="3"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="textarea">结束时间</label>

            <div class="controls">
                <input type="text" class="input-xlarge" name="end_time" id="end_time"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="textarea">优先级</label>

            <div class="controls">
                <input type="text" class="input-xlarge" name="priority" value="1"/>
                <p class="help-block">默认等级为1数字越大分的越快，不要超过10啊！</p>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="textarea">备注</label>

            <div class="controls">
                <textarea class="input-xlarge" id="textarea" rows="3" name="note"></textarea>
            </div>
        </div>
        <div class="form-actions">
            <input class="btn btn-primary" type="submit" value="添加">
        </div>
    </fieldset>
</form>
<include file="Public:footer"/>
<script type="text/javascript" src="__STATIC__/task/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript">
    $(function () {
        $("#end_time").datepicker({
            changeMonth:true,
            changeYear:true,
            dateFormat:"yy-mm-dd"
        });
    });
</script>